package com.zoroki.student_score_system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zoroki.student_score_system.domain.Score;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zoroki.student_score_system.vo.ScoreVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【score】的数据库操作Service
* @createDate 2025-06-30 12:49:22
*/
public interface ScoreService extends IService<Score> {
    List<Score> getScoreByStudentId(int studentId);
    Score getScoreByStudentIdAndCourseId(int studentId, int courseId);
    boolean addScore(Score score);
    boolean updateScore(Score score);
    boolean deleteScore(Integer scoreId);
    Page<ScoreVo> getAllScore(int pageNo, int pageSize, String msg, String type);
}
